﻿// SMIL is a community project available under the Microsoft Public License (Ms-PL)
// Code is provided as is and with no warrenty – Use at your own risk
// View the project and the latest code at http://smil.codeplex.com/


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;

namespace SMIL.CustomField
{
    public class SMILDataFieldType : SPFieldText
    {
        public SMILDataFieldType(SPFieldCollection fields, string fieldName)
            : base(fields, fieldName)
        {

        }

        public SMILDataFieldType(SPFieldCollection fields, string typeName, string displayName)
            : base(fields, typeName, displayName)
        {

        }

        public override Microsoft.SharePoint.WebControls.BaseFieldControl FieldRenderingControl
        {
            get
            {
                BaseFieldControl baseFieldConrol = new SMILField();
                baseFieldConrol.FieldName = this.InternalName;
                return baseFieldConrol;
            }
        }

    }
}
